#ifndef __USART1_H
#define __USART1_H

#include "system.h"
#include "stm32f4xx.h"

#define DBUS_RX_BUF_NUM 30u
#define RC_FRAME_LENGTH 18u
//typedef __packed struct
//{
//        __packed struct
//        {
//                int16_t ch[5];
//                char s[2];
//        } rc;

//} RC_ctrl_t;


void USART1_Init( void );
//static void DBUS_TO_RC(volatile const uint8_t *dbus_buf, RC_ctrl_t *rc_ctrl);

void vCom2RxTxTest( void );
//volatile uint8_t *pucCom2ReadBuffer( void );


#endif
